<div class="container">
    <div class="row">
        <div class="span12">
            <h1 class="page-header">Мои объявления</h1>
            <div class="properties-grid">
                <div class="row">
                    <?php foreach ($flats as $flat) { ?>

                        <div class="property span3" style="margin-bottom:30px;">
                            <div class="image">
                                <div class="content">
                                    <a href="/profile/update-flat/<?= $flat->id; ?>"></a>
                                    <?=ImageResizer::getThumb($flat->img0 , 'data/imgs/flat/'.$flat->id.'/' , $flat->img0, 270 , 200 )?>
                                </div><!-- /.content -->
                                <div class="price"><?= $flat->price; ?> грн./cутки</div><!-- /.price -->
                            </div><!-- /.image -->

                            <div class="title">
                                <h2 style="color: #0584b8; font-size: 18px;"><?= $flat->сountry->name; ?>, <?= $flat->region->name; ?>, <?= $flat->сity->name; ?>, <?=$flat->street;?> <?=$flat->home; ?></h2>
                            </div><!-- /.title -->
                            
                            <div class="area">
                                <span class="key">Статус:</span><!-- /.key -->
                                <span class="value"><?= $flat->getStatus(); ?></span><!-- /.value -->
                            </div><!-- /.area -->
                            
                            <?php if(0) { ?>
                            <div class="location">Тип : <?= $flat->getTypeFlatText(); ?></div><!-- /.location -->
                            
                            <div class="area">
                                <span class="key">Показов:</span><!-- /.key -->
                                <span class="value"><?= $flat->count_show; ?></span><!-- /.value -->
                            </div><!-- /.area -->
                            
                            <div class="area">
                                <span class="key">Заказов:</span><!-- /.key -->
                                <span class="value"><?= $flat->count_order; ?></span><!-- /.value -->
                            </div><!-- /.area -->
                            <?php } ?>
                        </div><!-- /.property -->

                    <?php } ?>

                </div><!-- /.row -->
            </div><!-- /.properties-grid -->
        </div>
    </div>
</div>